<div ng-controller="shopCtrl">
    <div class="bg-light lter b-b wrapper-md ng-scope">
        <h4 class="m-n font-thin">门店管理</h4>
    </div>
    <div class="wrapper-md ng-scope">
        <div class="panel">
            <div class="row wrapper">
                <div class="col-sm-9">
                    <form class="form-inline ng-pristine ng-valid">
                        <div class="form-group">
                            <label class="control-label">门店名称</label>
                            <input type="text" class="input-sm form-control" ng-model="goodsListVO.name" placeholder="门店的名称">
                        </div>
                        <button class="btn btn-sm btn-default" ng-click="findPageAll()">查询</button>
                    </form>
                </div>
                <div class="col-sm-3">
                    <div class=" pull-right">
                        <a class="btn btn-sm btn-info" ui-sref="app.shopAdd" target="_blank">添加门店</a>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="table-responsive pos-rlt">
                <table class="table table-striped b-t b-light pos-rlt">
                    <thead>
                        <tr>
                            <th>名称</th>
                            <th>账号</th>
                            <th>行业</th>
                            <th>归属地区</th>
                            <th>套餐</th>
                            <th>联系电话</th>
                            <th>审核状态</th>
                            <th>营业状态</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="h6" ng-repeat="item in list">
                            <td>{{item.name}}</td>
                            <td>{{item.account}}</td>
                            <td>{{item.industryName}}</td>
                            <td>{{item.province}} - {{item.city}} - {{item.county}}</td>
                            <td>{{item.setMealName}}</td>
                            <td>{{item.mobilePhone}}</td>
                            <td>
                                <span class="label bg-light" ng-class="{0:'bg-light',1:'bg-danger',2:'bg-success'}[item.auditStatus]" ng-bind="{0:'等待审核中',1:'审核不通过',2:'审核通过'}[item.auditStatus]"></span>
                            </td>
                            <td>
                                <span ng-bind="{0:'[营业中]',1:'[休息中]',2:'停止经营'}[item.status]"></span>
                            </td>
                            <td>
                                <a class="btn btn-sm btn-info" ui-sref="app.shopEdit({id:item.id})" target="_blank">修改</a>
                                <a class="btn btn-sm btn-success" ui-sref="app.goodsList({shopId:item.id})" target="_blank">查看产品列表</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div ng-if="list.length<=0 && !app.loading" class="padder-v text-center">
                    <span class="h6">~未搜索到任何数据~</span>
                </div>
                <div>
                    <circle-loading ng-if="app.loading"></circle-loading>
                </div>
            </div>
            <footer class="panel-footer">
                <div class="row">
                    <div class="col-sm-offset-4 col-sm-4 text-center">
                        <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                    </div>
                    <div class="col-sm-4 text-right text-center-xs">
                        <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage"
                                    ng-change="pageChanged()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                                    previous-text="上一页" next-text="下一页"
                                    first-text="首页" last-text="尾页"></pagination>
                    </div>
                </div>
            </footer>
        </div>
    </div>

</div>